package shoppingmall.jmu.order.entity;

import java.util.Date;

public class Order {
	private String user_id;
	private String order_id;
	private String sta;
	private int address_id;
	private double payment;
	private Date placed;
	private Date receipt;
	private Date deliver;
	private Date handover;
	
	public String getUser_id() {
		return user_id;
	}
	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}
	public String getOrder_id() {
		return order_id;
	}
	public void setOrder_id(String order_id) {
		this.order_id = order_id;
	}
	public String getSta() {
		return sta;
	}
	public void setSta(String sta) {
		this.sta = sta;
	}
	public int getAddress_id() {
		return address_id;
	}
	public void setAddress_id(int address_id) {
		this.address_id = address_id;
	}
	public double getPayment() {
		return payment;
	}
	public void setPayment(double payment) {
		this.payment = payment;
	}
	public Date getPlaced() {
		return placed;
	}
	public void setPlaced(Date placed) {
		this.placed = placed;
	}
	public Date getReceipt() {
		return receipt;
	}
	public void setReceipt(Date receipt) {
		this.receipt = receipt;
	}
	public Date getDeliver() {
		return deliver;
	}
	public void setDeliver(Date deliver) {
		this.deliver = deliver;
	}
	public Date getHandover() {
		return handover;
	}
	public void setHandover(Date handover) {
		this.handover = handover;
	}
	
	public Order(String user_id, String order_id, String sta, int address_id,
			double payment, Date placed, Date receipt, Date deliver,
			Date handover) {
		super();
		this.user_id = user_id;
		this.order_id = order_id;
		this.sta = sta;
		this.address_id = address_id;
		this.payment = payment;
		this.placed = placed;
		this.receipt = receipt;
		this.deliver = deliver;
		this.handover = handover;
	}
	
	@Override
	public String toString() {
		return "Order [user_id=" + user_id + ", order_id=" + order_id
				+ ", sta=" + sta + ", address_id=" + address_id + ", payment="
				+ payment + ", placed=" + placed + ", receipt=" + receipt
				+ ", deliver=" + deliver + ", handover=" + handover + "]";
	}
}
